// 旅游首页相关的请求
import request from '@/utils/request'



//雨量图层请求
export const reqRainLayer = (county, town, timeType) => request.get(`/weatherfacts/rainLiveGis?county=${county}&town=${town}&timeType=${timeType}`)
    
    //气温图层请求
export const reqTempLayer=(county,town,type)=>request.get(`/weatherfacts/temperatureLiveGis?county=${county}&town=${town}&type=${type}`)

    //天气实况请求
export const reqWeatherCondition = (county, town, ScenicName, ScenicClass,wsId) => request.get(`/travel/getActualTravelData?county=${county}&town=${town}&ScenicName=${ScenicName}&ScenicClass=${ScenicClass}&wsId=${wsId}`)

// 雷达回波
export const reqRadarEcho = () => request.get(`/weatherfacts/weatherRadarPic`)


// 24小时天气预报
export const req24Forecast=(town)=>request.get(`/weatherforecast/weatherforecast24H?town=${town}`)

// 7天天气预报
export const req7Forecast = (twon) => request.get(`/weatherforecast/weatherforecast7Days?county=${twon}`)

//获取所有景点
export const reqAllSpots = () => request.get(`/travel/getAllScenicSpot`)

    
// 条件查询景点
export const reqSearchSpots = (data) => request.post(`/travel/search`, data)

// 气象景观
export const reqLandscape = (data) => request.post(`/travel/getPercent`, data)

// 气象景观24小时预报

export const reqLandscape24 = (name) => request.get(`/travel/LandscapeProbabilityForecast24h?name=${name}`)

// 景区简介
export const reqIntroduction = (dsid, ScenicName) => request.get(`/travel/introductionOfScenicSpot?dsid=${dsid}&ScenicName=${ScenicName}`)

// 预警列表
export const reqWarningList = (name, county, beginTime, endTime) => request.get(`/alarmList/getList?name=${name}&county=${county}&beginTime=${beginTime}&endTime=${endTime}`)
    
// 预警图标
    export const reqWarningIcon = (picType,level) => request.get(`/picRelaUrl/getAlarmPicUrl?picType=${picType}&level=${level}`)


    // 旅游指数
        export const reqTourismIndex = (dsid) => request.get(`/travel/getScenicSpotIndex?dsid=${dsid}`)
    
// 景区监控
export const reqMonitor = (lat,lon,natType,transType,nAudioType,isList) => request.get(`/travel/videoMonitoring?lat=${lat}&lon=${lon}&natType=${natType}&transType=${transType}&nAudioType=${nAudioType}&isList=${isList}`)
        // 获取负离子token
export const reqNegToken=(username)=>request.get(`/getToken?username=${username}`)